CXX=g++
CXXFLAGS=-g -Wall -Werror `sdl-config --cflags`
LFLAGS=`sdl-config --libs`

OBJS=main.o

program: $(OBJS)
	$(CC) $(LFLAGS) $^ -o $@

clean:
	rm -rf *.o program

$(OBJS): %.o: %.cpp
	$(CC) -c $(CXXFLAGS) $< -o $@

.PHONY: program clean
